package com.bnz.cart.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
//import io.swagger.annotations.ApiModel;
//import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author zfs
 * @since 2022-12-15
 */
@TableName("tb_order_item")
//@ApiModel(value = "OrderItem对象", description = "")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

//    @ApiModelProperty("商品id")
    private Long itemId;

//    @ApiModelProperty("SPU_ID")
    private Long goodsId;

//    @ApiModelProperty("订单id")
    private Long orderId;

//    @ApiModelProperty("商品标题")
    private String title;

//    @ApiModelProperty("商品单价")
    private BigDecimal price;

//    @ApiModelProperty("商品购买数量")
    private Integer num;

//    @ApiModelProperty("商品总金额")
    private BigDecimal totalFee;

//    @ApiModelProperty("商品图片地址")
    private String picPath;

    private String sellerId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public BigDecimal getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(BigDecimal totalFee) {
        this.totalFee = totalFee;
    }

    public String getPicPath() {
        return picPath;
    }

    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }

    public String getSellerId() {
        return sellerId;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
            "id = " + id +
            ", itemId = " + itemId +
            ", goodsId = " + goodsId +
            ", orderId = " + orderId +
            ", title = " + title +
            ", price = " + price +
            ", num = " + num +
            ", totalFee = " + totalFee +
            ", picPath = " + picPath +
            ", sellerId = " + sellerId +
        "}";
    }
}
